﻿using System;

namespace InDepth2Demo.Chapter5
{
    /// <summary>
    /// 5.3 逆变性与协变性
    /// </summary>
    public class Contravariance
    {
        void EventHandler(object sender, EventArgs e) { }
        //void KeyPressEventHandler(object sender, KeyPressEventArgs e) { }
        //void MouseEventHandler(object sender, MouseEventArgs e) { }
        // KeyPressEventArgs 和 MouseEventArgs 都从 EventArgs 派生
    }
}
